using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Apple : Relic
{
    [SerializeField] private int _HPIncrement;

    private static int _relicID;
    public override int RelicID { get { return _relicID; } }

    private static string  _relicName;
    public override string RelicName { get { return _relicName; } }

    private static RelicRarityType _relicRarityType;
    public override RelicRarityType RelicRarity { get { return _relicRarityType; } }

    // player传参获取或者在Awake中获取
    public override void OnPickUp(CharacterDataHolder playerData)
    {
        playerData.ChangeMaxHP(_HPIncrement);
        //数据储存没搞定
        // player.AddMaxHP(HPIncrement);
    }

    public override void OnCombatStart(CharacterDataHolder playerData) 
    {
        playerData.ChangeMaxHP(_HPIncrement);
    }


    public override void OnBallMatch()
    {

    }
}
